<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>其他选择器</title>
  <style>
    /* 包含选择器E1 E2说明:E2是E1的后代标签 */
    div p {
      color: darkgrey;
    }

    /* 子选择器 E1>E2  说明:选择所有E1标签的E2子标签*/
    div>p {
      font-size: 30px;
    }

    /* 选择器分组 E1 E2 E3 */
    div,
    div p,
    p,
    #font1 {
      color: darkolivegreen;
    }
  </style>
</head>

<body>
  <div>
    <p>段落1</p>
    <p>段落2</p>
    <span>
      <p>段落3</p>
      <span>
        <span>
          <p>段落4</p>
        </span>
      </span>
    </span>
  </div>
  <p>段落5</p>
  <font id="font1">普通文本</font>

</body>

</html>